﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Yala.Models.AuthProviders;
using Yala.Models.Items;
using Yala.Models.UserProfiles;

namespace Yala.Models.Users {
    public class User {
        public User() {
            Id = Guid.NewGuid();
            //UserProfile = new UserProfile();
        }
        public virtual Guid Id { get; private set; }

       // [Display(Name = "User Name")]
        public virtual string Username { get; set; }
        public virtual string Email { get; set; }
        public virtual string OpenId { get; set; }
        public virtual DateTime LastLogOnDate { get; set; }
        public virtual AuthProvider AuthProvider { get; set; }
        public virtual ICollection<Item> Items { get; set; }
        public virtual UserProfile UserProfile { get; set; }


        [Display(Name = "First Name")]
        public virtual string FirstName { get; set; }

        [Display(Name = "Middle Name")]
        public virtual string MiddleName { get; set; }

        [Display(Name = "Last Name")]
        public virtual string LastName { get; set; }
    }
}
